package com.csun.cmny.provider.service;

import com.csun.cmny.base.dto.LoginAuthDto;
import com.csun.cmny.core.support.IService;
import com.csun.cmny.provider.model.domain.DmcCsunCameraConfig;
import com.csun.cmny.provider.model.dto.camera.CameraConfigDto;
import com.csun.cmny.provider.model.vo.csuncamera.CameraConfigVO;

public interface DmcCsunCameraConfigService extends IService<DmcCsunCameraConfig> {

    /**
     * 根据房间Id和机构Id查询摄像头配置
     *
     * @param roomId    the room id
     * @param groupId   the group id
     *
     * @return  the dmc csun camera config
     */
    DmcCsunCameraConfig queryConfigByRoomIdAndGroupId(Integer roomId, Long groupId);

    /**
     * 更新或保存摄像头配置
     *
     * @param dmcCsunCameraConfig   the dmc csun camera config
     *
     * @return  the int.
     */
    Integer saveOrUpdate(DmcCsunCameraConfig dmcCsunCameraConfig);

    /*
    * 批量摄像头配置
    * */
    Integer setCsunCameraConfig(CameraConfigDto dto, LoginAuthDto loginAuthDto);

    /*
    * 摄像头配置查询
    * */
    CameraConfigVO getCsunCameraConfig(Long deviceId);
}
